package GRPC

import (
	"fmt"
	"gin/global"
	"google.golang.org/grpc"
	user "user_srv/proto"
)

func NewUserClient() {

	// 1.连接
	conn, err := grpc.Dial("127.0.0.1:50051", grpc.WithInsecure())
	if err != nil {
		fmt.Printf("连接异常： %s\n", err)
		return
	}
	global.UserClient = user.NewUserClient(conn)

}
